package com.hulk.dryad.admin.controller.monitor;

import com.hulk.dryad.common.component.R;
import com.hulk.dryad.common.os.OServer;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 服务器监控
 *
 * @author hulk
 */
@Api(value = "oserver", tags = "服务器监控")
@RestController
@RequestMapping("/monitor/oserver")
public class OsMonitorController {

  @ApiOperation(value = "info", notes = "oserver监控详细信息")
  @GetMapping("/info")
  public R getInfo() {
    OServer server = new OServer();
    server.copyTo();
    return R.ok(server);
  }
}
